package jp.co.sn.mml.pojo.tmskitemhk;


public class TmskitemhkId implements java.io.Serializable { 

	//順番
	private Long seqNo;
	//変換種類
	private String hkKbn;
	//検査小分類1
	private String SBnr1;
	//変換キー
	private String hkKey;

	/** default constructor */
	public TmskitemhkId(){

	}

	/** full constructor */
	public TmskitemhkId(Long seqNo,String hkKbn,String SBnr1
			,String hkKey){
		this.seqNo = seqNo;
		this.hkKbn = hkKbn;
		this.SBnr1 = SBnr1;
		this.hkKey = hkKey;
	}

	//Property accessors
	public Long getSeqNo(){
		return this.seqNo;
	}

	public void setSeqNo(Long seqNo){
		this.seqNo=seqNo;
	}

	public String getHkKbn(){
		return this.hkKbn;
	}

	public void setHkKbn(String hkKbn){
		this.hkKbn=hkKbn;
	}

	public String getSBnr1(){
		return this.SBnr1;
	}

	public void setSBnr1(String SBnr1){
		this.SBnr1=SBnr1;
	}

	public String getHkKey(){
		return this.hkKey;
	}

	public void setHkKey(String hkKey){
		this.hkKey=hkKey;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmskitemhkId))
			return false;

		TmskitemhkId castOther = (TmskitemhkId) other;

		return ((this.getSeqNo() ==  castOther.getSeqNo())
				||(this.getSeqNo()!=null && castOther.getSeqNo() !=null 
					&& castOther.getSeqNo() !=null 
					&& this.getSeqNo().equals(castOther.getSeqNo())))
			&& ((this.getHkKbn() ==  castOther.getHkKbn())
				||(this.getHkKbn()!=null && castOther.getHkKbn() !=null 
					&& castOther.getHkKbn() !=null 
					&& this.getHkKbn().equals(castOther.getHkKbn())))
			&& ((this.getSBnr1() ==  castOther.getSBnr1())
				||(this.getSBnr1()!=null && castOther.getSBnr1() !=null 
					&& castOther.getSBnr1() !=null 
					&& this.getSBnr1().equals(castOther.getSBnr1())))
			&& ((this.getHkKey() ==  castOther.getHkKey())
				||(this.getHkKey()!=null && castOther.getHkKey() !=null 
					&& castOther.getHkKey() !=null 
					&& this.getHkKey().equals(castOther.getHkKey())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getSeqNo() == null ? 0 : this.getSeqNo().hashCode());
		result = 37 * result
				+ (getHkKbn() == null ? 0 : this.getHkKbn().hashCode());
		result = 37 * result
				+ (getSBnr1() == null ? 0 : this.getSBnr1().hashCode());
		result = 37 * result
				+ (getHkKey() == null ? 0 : this.getHkKey().hashCode());
		return result;
	}

}